package com.elm.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.elm.model.Seller;

public class FindSellerController extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
	// TODO Auto-generated method stub
	doPost(req, resp);
}
@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
	
	req.setCharacterEncoding("utf8");
	resp.setCharacterEncoding("utf8");
	// PrintWriter  pw =  resp.getWriter();
	 HttpSession   session = req.getSession();
	 Seller seller=(Seller) session.getAttribute("currentSeller");
		int sellerid=seller.getSellerid();//拿到商家id
		String sellername=seller.getSellername();//拿到商家老板名称
		String shopname=seller.getShopname();//拿到商家的店铺名称
		String sellerphone=seller.getSellerphone();//拿到商家的电话
		String selleraddr=seller.getSelleraddr();//拿到商家的店铺地址
		String sellerpsw=seller.getSellerpsw();//拿到商家的帐号密码
		String shopgenre=seller.getShopgenre();//拿到商家该店铺的菜品情况
		
		
		
	}
}
